<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/hy.admin.css"/>
	</head>
	<body>
	<div class="am-g">
		 {include file='../Common/hy_header.html'}
		 <div class="am-g">
			<br>
			<div class="am-u-md-10 am-u-end">
				<form class="am-form am-form-horizontal hy-js-form">
					{foreach from=$homes item=home}
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">图片{$home.id}</label>
						<div class="am-u-sm-6">
							<img id="img_color" src="http://g4.airefp.com/xy/Uploads/news/news_bg{$home.id}.png"  width="50%">
						</div>
						<div class="am-u-sm-3">
						</div>
					</div>
					<div class="am-form-group">
						<label for="user-name" class="am-u-sm-3 am-form-label">图片{$home.id}外链</label>
						<div class="am-u-sm-6">
							<input type="text" name="url{$home.id}" value="{$home.url}" placeholder="">
						</div>
						<div class="am-u-sm-3">
						</div>
					</div>
					{/foreach}
					<div class="am-form-group">
						<div class="am-u-sm-9 am-u-sm-push-3">
							<button type="button"  id="btn" class="am-btn am-btn-primary hy-js-submit">保存</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	  {include file='../Common/hy_footer.html'}
	<script type="text/javascript" src="{$_C.hy_path}js/editor/kindeditor.js"></script>
	<script type="text/javascript">
		 hy_submit('index.php?g=admin&m=chat&a=saveHomeUrl',{},function(result){
			showMsg(result.content, result.error);
//    		parent.$('#special').attr('src', parent.$('#special').attr('src'));
		});
		
	</script>
	</body>
</html>
